package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.Park;
import cn.topevery.garden.entity.query.ParkQuery;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author code-generate
 * @date 2021-08-06
 */
public interface ParkDao extends BaseDao<Park> {

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<Park> listPage(ParkQuery query);

    List<Park> getListBySectionId(List<Integer> ids);

    List<Map<String, Object>> getShortList();

    Integer getParkIdByCodeAndName(String code, String name);
}
